package com.kha.listone.util;

import javax.microedition.lcdui.Command;

import com.kha.listone.locale.LocaleConstants;
import com.kha.listone.locale.LocaleResources;

public class Commands {
	public static Command SELECT;

	public static Command BACK;

	public static Command EXIT;

	public static Command ABOUT;

	public static Command INFORMATION_DONE;
	
	public static Command INFORMATION_BACK;

	public static Command OK;

	public static Command DONE;

	public static Command HELP;

	public static Command CANCEL;

	public static Command ALERT_OK;

	public static Command ALERT_CANCEL;

	public static Command ALERT_RESTART_OK;

	public static Command ALERT_RESTART_CANCEL;

	public static Command SETTING;

	public static Command SYNC;

	public static Command ADD;

	public static Command BACKUP;

	public static Command RESTORE;

	public static Command LOGIN;

	public static Command LOGOUT;

	public static Command OPT_ADD;
	
	public static Command OPT_DETAIL;
	
	public static Command OPT_REMOVE;
	
	public static Command OPT_EDIT;
	
	public static Command CHANGE_FORM;

	public static void refresh() {
		SELECT = new Command("select", Command.SCREEN, 1);

		BACK = new Command("back", Command.BACK, 1);

		EXIT = new Command("exit", Command.EXIT, 1);

		ABOUT = new Command(LocaleResources.getInstance().getString(
				LocaleConstants.keys.ABOUT_OPTION_MENU), Command.SCREEN, 1);

		INFORMATION_DONE = new Command("done", Command.OK, 1);

		INFORMATION_BACK = new Command("back", Command.BACK, 1);

		OK = new Command("OK", Command.OK, 1);

		DONE = new Command("done", Command.OK, 1);

		HELP = new Command("HELP", Command.HELP, 1);

		CANCEL = new Command("CANCEL", Command.CANCEL, 1);

		ALERT_OK = new Command("OK", Command.OK, 1);

		ALERT_CANCEL = new Command("CANCEL", Command.CANCEL, 1);

		ALERT_RESTART_OK = new Command("OK", Command.OK, 2);

		ALERT_RESTART_CANCEL = new Command("CANCEL", Command.CANCEL, 2);

		SETTING = new Command("Settings", Command.SCREEN, 1);

		SYNC = new Command("Sync now", Command.OK, 1);

		ADD = new Command("Add Task", Command.SCREEN, 1);

		BACKUP = new Command("Backup", Command.SCREEN, 1);

		RESTORE = new Command("Restore", Command.SCREEN, 1);

		LOGIN = new Command("LogIn", Command.SCREEN, 1);

		LOGOUT = new Command("LogOut", Command.SCREEN, 1);

		OPT_ADD = new Command("New", Command.ITEM, 3);
		
		OPT_REMOVE = new Command("Remove", Command.ITEM, 4);
		
		OPT_DETAIL = new Command("Detail", Command.ITEM, 1);
		
		OPT_EDIT = new Command("Edit", Command.ITEM, 2);
		
		CHANGE_FORM = new Command("Changed", Command.SCREEN, 1);
		
	}

}
